|
|
11.1 | Access Control List Fundamentals | ||
| 11.1.2 | How ACLs work |
|
An ACL is a group of statements that
define whether packets are accepted or rejected at inbound and
outbound interfaces.
The order in which ACL statements are placed is important. The Cisco IOS software tests the packet against each condition statement in order from the top of the list to the bottom. Once a match is found in the list, the accept or reject action is performed and no other ACL statements are checked. If a condition statement that permits all traffic is located at the top of the list, no statements added below that will ever be checked. If additional condition statements are
needed in an access list, the entire ACL must be deleted and recreated
with the new condition statements.
The beginning of the router’s process
is the same, whether ACLs are used or not.
As a review, ACL statements operate in sequential, logical order. If a condition match is true, the packet is permitted or denied and the rest of the ACL statements are not checked. If all the ACL statements are unmatched, an implicit "deny any" statement is placed at the end of the list by default. Even though the "deny any" is not visible as the last line of an ACL, it is there and it will not allow any packets not matched in the ACL to be accepted. When first learning how to create ACLs, it is a good idea to add the implicit deny at the end of ACLs to reinforce the dynamic presence of the command line.
|